/**
 * Created by liubin on 2014/12/11.
 * 工具类
 */
define(['app'], function (app) {
    return app.factory('Tools', function ($state, $stateParams) {
        return {
            reloadState: function(){
                // 刷新状态
                $state.transitionTo($state.current, $stateParams, {
                    reload: true,
                    inherit: false,
                    notify: true
                });
            }
        }
    });
});